/* 基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}

html,
body,
#app {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    font-family:
        Helvetica Neue,
        Helvetica,
        PingFang SC,
        Hiragino Sans GB,
        Microsoft YaHei,
        SimSun,
        sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

.w100 {
    width: 100% !important;
}
.h100 {
    height: 100% !important;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex {
    flex: 1;
}

.pl-15 {
    padding-left: 15px;
}

.default-main {
    width: 100%;
    height: 100%;
}

.view-main {
    display: flex;
    flex-direction: column;
}

.table-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-header {
    height: var(--table-header-height);
    line-height: var(--table-header-height);
    background-color: var(--table-header-bg-color);
    padding: 0 16px;
    display: flex;
    flex-direction: row;

    .table-header-back-btn {
        margin-right: 5px;
    }

    .table-header-title {
        margin-right: 5px;
        margin-left: 0px;
        padding-left: 5px;
        padding-right: 15px;
        border-radius: 5px;
    }
}

.table-body {
    flex: 1;
    padding: 16px;
    width: 100%;
}

.table-page {
    height: 40px;
    padding-left: 15px;
    padding-right: 15px;
}

.operate-dialog {
    .title {
        text-align: left;
    }
}
.table-header-operate-text,
.table-operate-text {
    padding-left: 5px;
}

.view-header {
    height: var(--table-header-height);
    line-height: var(--table-header-height);
    background-color: var(--table-header-bg-color);
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    .view-title {
        margin-right: 5px;
        margin-left: 0px;
        padding-left: 5px;
        padding-right: 15px;
        border-radius: 5px;
    }
    .view-buttons{
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
}
.view-body{
    flex: 1;
    padding: 16px;
    width: 100%;
}

.el-menu-item.is-active {
    background-color: #4a3737;
}

.dashboard-echarts-container {
    .el-card__body {
        padding: 0;
    }

    .dashboard-echarts{
        margin-bottom: 10px;
        height: 320px;
        margin: 5px;
    }

    .cpu-dashboard-echarts-container,
    .memory-dashboard-echarts-container,
    .network-dashboard-echarts-container,
    .disk-dashboard-echarts-container{
        width: calc(50vw - 32px );
        height: 260px;
        overflow-y: hidden;
        overflow-x: hidden;
        margin: auto;
        position: relative;
    }

    .cpu-dashboard-echarts,
    .memory-dashboard-echarts,
    .network-dashboard-echarts,
    .disk-dashboard-echarts{
        position: absolute;
        top: -30px;
        left: -48px;
        width: calc(50vw + 90px);
        height: 300px;
    }
}